package com.itheima.d2_homework.timu1;

import com.itheima.d2_homework.timu1.Employee;
import com.itheima.d2_homework.timu1.Manager;

public class Clerk extends Employee {
    private Manager manager;

    public Clerk(Manager manager) {
        this.manager = manager;
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        this.manager = manager;
    }

    @Override
    public void showMsg() {
        System.out.println(this.getDept() + this.getName() + "," + "员工编号：" + this.getWorkId() + "他的职员是" + manager.getName());
    }
}
